package com.cmwa.scbp.business.postMaintenance.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cmwa.scbp.base.mvc.entity.Page;
import com.cmwa.scbp.base.mvc.entity.SearchParam;
import com.cmwa.scbp.business.postMaintenance.dao.PostPersonnelInfoDao;
import com.cmwa.scbp.business.postMaintenance.entity.PostPersonnelInfoVo;
import com.cmwa.scbp.business.postMaintenance.service.PostPersonnelInfoService;

/**
 * 岗位-人员-资源信息表业务实现层
 * 
 * @author ex-sujh
 * @date 2019-02-26 10:12:33
 */
@Service
public class PostPersonnelInfoServiceImpl implements PostPersonnelInfoService {
	@Resource
	private PostPersonnelInfoDao postPersonnelInfoDao;
	
		
	@Override
	public void insertPostPersonnelInfo(PostPersonnelInfoVo postPersonnelInfo) {
		postPersonnelInfoDao.insertPostPersonnelInfo(postPersonnelInfo);
	}
	
		
		
	@Override
	public void physicDeletePostPersonnelInfoById(String id) {
		postPersonnelInfoDao.physicDeletePostPersonnelInfoById(id);
	}
	
		
		
	@Override
	public void logicDeletePostPersonnelInfoById(String id) {
		postPersonnelInfoDao.logicDeletePostPersonnelInfoById(id);
	}
	
		
		
	@Override
	public void updatePostPersonnelInfoById(PostPersonnelInfoVo postPersonnelInfo) {
		postPersonnelInfoDao.updatePostPersonnelInfoById(postPersonnelInfo);
	}
	
		
		
	@Override
	public Page<PostPersonnelInfoVo> postPersonnelInfoListPage(SearchParam sp) {
		List<PostPersonnelInfoVo> items = postPersonnelInfoDao.postPersonnelInfoListPage(sp);
		return Page.create(items, sp.getStart(), sp.getLimit(), sp.getTotal());
	}
	
		
		
	@Override
	public PostPersonnelInfoVo getPostPersonnelInfoById(String id) {
		return postPersonnelInfoDao.getPostPersonnelInfoById(id);
	}
	
		
	
}
